package org.xtremeobjects.anotations.state;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks the field that holds the state and will be updated at each
 * state change.
 * @author Juan
 */
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value=ElementType.FIELD)
public @interface StateField {

	/**
	 * To what state machine this belongs.
	 * @return
	 */
	String statemachine() default("Default");
}
